package me.aartikov.alligator.converters;

import me.aartikov.alligator.Screen;
import ohos.aafwk.content.Intent;
import ohos.app.Context;

/**
 * Converts a screen to an activity intent and vice versa.
 *
 * @param <ScreenT> screen type
 */
public interface IntentConverter<ScreenT extends Screen> {


    Intent createIntent(Context context, ScreenT screen);


    ScreenT getScreen(Intent intent);
}
